#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main()
{
	char arr[] = "abcdefg";
	char arr1[200] = { 0 };
	int k = 0;
	scanf_s("%d\n", &k);
	k %= strlen(arr);
	strcpy(arr1, arr + k);
	strncat(arr1, arr, k);
	printf("%s\n", arr1);
	return 0;
}